package com.eastfair.venueservice.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.WorkOrderWorkOvertimeDisposalModeEnum;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 实体类
 * 工单加班项
 * </p>
 *
 * @author linan
 * @since 2022-10-24
 */
@Data
@ApiModel(value = "WorkOrderWorkOvertimeUpdateDTO", description = "工单加班项")
public class WorkOrderWorkOvertimeDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 工单编号
     */
    @ApiModelProperty(value = "工单编号")
    @Size(max = 255, message = "工单编号长度不能超过255")
    private String workOrderNo;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @Size(max = 255, message = "名称长度不能超过255")
    private String name;
    /**
     * 加班日期
     */
    @ApiModelProperty(value = "加班日期")
    private LocalDate overtimeDate;
    /**
     * 加班开始时间
     */
    @ApiModelProperty(value = "加班开始时间")
    @Size(max = 50, message = "加班开始时间长度不能超过50")
    private String overtimeStart;
    /**
     * 加班结束时间
     */
    @ApiModelProperty(value = "加班结束时间")
    @Size(max = 50, message = "加班结束时间长度不能超过50")
    private String overtimeEnd;
    /**
     * 加班时长(小时)
     */
    @ApiModelProperty(value = "加班时长(小时)")
    private Double overtimePeriod;
    /**
     * 处理方式 #{CONSTRUCTION_AND_INSTALLATION:施工安装;EQUIPMENT_WARRANTY:设备保修;SITE_ACCEPTANCE:场地验收;OVERTIME_ON_SITE:现场加班;OTHER:其他}
     */
    @ApiModelProperty(value = "处理方式 #{CONSTRUCTION_AND_INSTALLATION:施工安装;EQUIPMENT_WARRANTY:设备保修;SITE_ACCEPTANCE:场地验收;OVERTIME_ON_SITE:现场加班;OTHER:其他}")
    private WorkOrderWorkOvertimeDisposalModeEnum disposalMode;
}
